package com.easy.common.web;

import java.util.Dictionary;
import java.util.List;

import javax.servlet.ServletContextEvent;

import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.context.support.WebApplicationContextUtils;

import com.easy.common.util.FileUtil;
import com.easy.system.domain.Lov;
import com.easy.system.service.LovService;
import com.easy.system.service.impl.LovServiceImpl;

public class EasyListener implements javax.servlet.ServletContextListener{

	@Override
	public void contextDestroyed(ServletContextEvent arg0){
		
	}
	
	@Override
	public void contextInitialized(ServletContextEvent arg0){
		
		// WebApplicationContext webApplicationContext = WebApplicationContextUtils.getWebApplicationContext(arg0.getServletContext());
		// LovService lsc = (LovService) webApplicationContext.getBean("lovServiceImpl");
		// FileUtil.loginDPVAPP1();
		// FileUtil.loginNAS();
		// lsc.findAllLovListToCase();   // 调用数据字典Manager的一个方法来缓存
	}
	
	
}
